package com.springcloud.feign.dao;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.lang.reflect.Method;

@FeignClient(value = "service-provision")
public interface GetHiDao {
    @RequestMapping(value = "/hi",method = RequestMethod.GET)
    String HiDao(@RequestParam(value = "name",defaultValue = "这里是Feign的默认名称")String name);
}
